set(DIR_CURRENT Src)

file(GLOB_RECURSE SRC_LIST "*.cpp")
foreach(localFile ${SRC_LIST})
  message(${localFile})
endforeach()

file(GLOB_RECURSE HEAD_LIST "*.h")
foreach(localFile ${HEAD_LIST})
  message(${localFile})
endforeach()

add_library(Src STATIC ${SRC_LIST} ${HEAD_LIST})

find_package(Threads)
target_link_libraries(Src ${CMAKE_THREAD_LIBS_INIT})